#include "Sprite.h"

Sprite::Sprite(std::string filename, int w, int h)
{
	image = NULL;
	width = w;
	height = h;

	image = LoadImage(filename);
}

Sprite::~Sprite()
{
	SDL_FreeSurface(image);
}

SDL_Surface* Sprite::LoadImage(std::string filename)
{
	return Drawable::LoadImage(filename);
}

void Sprite::DrawImage(SDL_Surface* destinationSurface, int x, int y)
{
	Drawable::DrawImage(destinationSurface, image, x, y);
}